package cn.zzp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @ClassName PetHomeApp
 * @Description
 * @Author 祝志鹏
 * @Date 2022/7/14 11:17
 */
@SpringBootApplication
//加载Listener - 本来监听器只要服务器一启动就会执行，但是SpringBoot项目中是通过启动类开启服务的，所以要加这个注解去加载listener，listener才会起作用
@ServletComponentScan(value = {"cn.zzp.basic.listen"})
@MapperScan("cn.zzp.*.mapper")
public class PetHomeApp {

    public static void main(String[] args) {
        SpringApplication.run(PetHomeApp.class, args);



    }

}
